﻿using System;
using System.Collections.Generic;
using System.Text;
using libCommonClass;
using libReadWrite;

namespace TTServer.Messages
{
    public class PPTActivateWindowRequestMessage: TTMessage
    {
        private String _temporaryKey = "";

        public String TemporaryKey
        {
            get { return _temporaryKey; }
            set { _temporaryKey = value; }
        }

        private int _index_0b = -1;

        public int Index_0b
        {
            get { return _index_0b; }
            set { _index_0b = value; }
        }

        private String _presentationName;

        public String PresentationName
        {
            get { return _presentationName; }
            set { _presentationName = value; }
        }

        public PPTActivateWindowRequestMessage()
        {

        }

        public override void ReadMessage(BigEndianReader sr)
        {
            this.TemporaryKey = sr.ReadString();

            _index_0b = sr.ReadInt32();
            _presentationName = sr.ReadString();
        }

        public override void WriteMessage(BigEndianWriter sw)
        {
            throw new NotImplementedException();
        }

        public override TTMessage Clone()
        {
            return (new PPTActivateWindowRequestMessage());
        }

        public override int GetMessageID()
        {
            return MessageKind.PPT_ACTIVATE_WINDOW_REQUEST;
        }

        public override string GetMessageName()
        {
            return "PPTActivateWindowRequestMessage";
        }
    }
}
